<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>识别历史</title>
    <!--标准mui.css-->
    <link rel="stylesheet" href="../css/mui.min.css" />
    <script src="../js/mui.min.js"></script>
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="../css/app.css" />
    <script src="../js/vue.js"></script>
    <script src="../js/jquery-3.6.0.min.js"></script>
    <script src="../js/sm2.js"></script>
    <script src="../js/sm3.js"></script>
    <script src="../js/feedback.js"></script>
    <script src="../js/clipboard.js"></script>
    <script src="../js/flexible.js"></script>
    <script src="../wx/uap.js"></script>
    <script src="../js/vconsole.min.js"></script>
    <script src="./text.js" type="text/javascript"></script>
    <style>
      .trainTicketstitle {
        background-image: linear-gradient(
          to right,
          rgb(13, 121, 131),
          rgb(25, 179, 182)
        );
        padding: 0.3rem 0.2rem;
        color: #fff;
        /* height: 2.43rem; */
        font-size: 0.36rem;
      }
      input[type="text"] {
        margin: 0.1rem 0 0 0;
        width: 100%;
        height: 85%;
        padding: 0;
        line-height: 1rem;
      }

      .mui-btn-blue,
      .mui-btn-primary,
      input[type="submit"] {
        background-color: rgb(25, 179, 182);
        color: #fff;
        border: 1px solid rgb(25, 179, 182);
        border-radius: 4px;
        margin-right: 10px;
      }

      .left {
        text-align: center;
        line-height: 0.5rem;
      }

      .left a {
        line-height: 0.5rem;
        color: #fff;
      }

      .left .left1 {
        position: absolute;
        left: 0.1rem;
        /* top: 0.5rem; */
      }

      .left :nth-child(1) span {
        /* line-height: 2rem; */
        color: #fff;
      }

      .left :nth-child(2) span {
        /* line-height: 2rem; */
        color: #fff;
      }
      .trainTickets {
        height: 100%;
        background-color: #f5f6f8;
      }
      ul {
        width: 90%;
        /* height: 2rem; */
        margin: 0.2rem auto;
        background-color: #fff;
        border-radius: 0.1rem;
        padding: 0.2rem 0.3rem;
      }
      ul li {
        margin-top: 0.3rem;
        font-size: 0.3rem;
      }
      ul li:last-child {
        font-size: 0.18rem;
        color: rgb(167, 165, 165);
        margin-top: 0.2rem;
        margin-bottom: 0.3rem;
      }
      .list{
        height: calc(100vh - 1.6rem);
        overflow: scroll;
      }
    </style>
  </head>

  <body>
    <div id="app">
      <!-- 提示信息 -->
      <!-- <div class="is-loading">
        <div class="curtain">
          <div class="loadingBgc">
            <div class="loader"></div>
            <p class="loadingF">正在识别</p>
          </div>
        </div>
      </div> -->
      <div class="trainTickets">
        <!-- <textarea name="" id="" cols="30" rows="10"></textarea> -->
        <!-- 头部 -->
        <div class="trainTicketstitle">
          <div class="arrow clearfix">
            <div class="left">
              <span class="left1" @click="home">
                <a
                  class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"
                ></a>
                <!-- <span>返回</span> -->
              </span>
              <!-- <van-icon name="arrow-left" /> -->
              <span style="font-weight: 600">识别历史</span>
            </div>
          </div>
        </div>
        <!-- 中间 -->
        <div class="list">
          <ul
            v-for="(item,index) in signRule"
            :key="index"
            type="none"
            @click="particulars(item.id,item.reportCode)"
          >
            <li>类型：{{ item.messageTitle }}</li>
            <li>{{ item.updateTime }}</li>
          </ul>
        </div>
      </div>
    </div>
    <script>
      new Vue({
        el: "#app",
        data() {
          return {
            // clipboard: sessionStorage.getItem("clipboard"),
            display: "black",
            displays: "",
            signRule: [
              
            ],
            raise: {},
            index: {},
            reportCode: "",
            // fileName: sessionStorage.getItem("fileName"),
          };
        },
        created() {
          this.compatibleInput();
        },
        methods: {
          // 进入函数
          compatibleInput() {
            let data = {
              userId: sessionStorage.getItem("userId"),
              orgId: sessionStorage.getItem("unitId"),
              timestamp: new Date().getTime() + "",
            };
            data = JSON.stringify(data);
            let sign = sm3(data);
            let AuthenticationSession =
              sessionStorage.getItem("Authentication");
            //   // let arr;
            $.ajax({
              url:
                localUrlLink +
                iscp_port +
                "/yipailu/IdentificationReport/queryAll",
              type: "post",
              async: false, //是否同步，false表示同步请求
              dataType: "json",
              data: data,
              headers: {
                "Content-Type": "application/json;charset=UTF-8",
                Authentication: AuthenticationSession,
                sign: sign,
              },
              success: (res, txt, xhr) => {
                if (sm3(res.resultValueStr) == xhr.getResponseHeader("sign")) {
                  let Authentication = xhr.getResponseHeader("Authentication");
                  if (res.code == 200) {
                    if (Authentication) {
                      sessionStorage.setItem("Authentication", Authentication);
                      // if (num == 1) {
                      //   $(location).attr("href", "Voice.html");
                      // }
                      this.signRule = res.resultValue;
                      // for (var item in res.resultValue) {
                      //   // document.write(arr[item] + ",");
                      // }
                      // mui.toast(res.resultValue, {
                      //   duration: "long",
                      //   type: "div",
                      // });
                      // setTimeout(() => {
                      //   $(location).attr("href", "luYinlist.html");
                      // }, 1000);
                    }
                  } else if (res.code == 500) {
                    // mui.toast(res.resultValue, {
                    //   duration: "long",
                    //   type: "div",
                    // });
                  } else {
                    // mui.toast("请求异常,请稍后再试", {
                    //   duration: "long",
                    //   type: "div",
                    // });
                  }
                } else {
                  // mui.toast("完整性校验失败", {
                  //   duration: "long",
                  //   type: "div",
                  // });
                }
              },
              error: (e) => {
                // $(".loader").css("display", "none");
                // $(".curtain").css("display", "none");
                // mui.toast("请求异常,请稍后再试", {
                //   duration: "long",
                //   type: "div",
                // });
              },
            });
          },

          home() {
            $(location).attr("href", "Home.html");
          },
          createSgin(data) {
            let hashData = sm3(data);
            let hashData_last = sm3(hashData);
            hashData_last = hashData_last.substr(0, 5);
            hashData += hashData_last;
            let sign = hashData;
            return sign;
          },
          particulars(id, e) {
            sessionStorage.setItem("id", id);
            if (e == "001") {
              $(location).attr("href", "particularsOne.html");
            } else if (e == "002") {
              $(location).attr("href", "particularsTwo.html");
            } else {
              $(location).attr("href", "particularsThree.html");
            }
          },
        },
      });
    </script>
  </body>
</html>

<body></body>
